package cn.pconline.autoclub.entity;

import java.util.Date;
import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;

/**
 * 点赞信息表 跟 DynaPraise 同样结构
 *
 * @author <a href="mailto:chensy0203@163.com">chensy</a>
 */
@Entity(tableName = "ac_user_praise", split = "Mod:dynainfoCreateBy:10")
public class UserPraise {

    @Id
    @Column(name = "user_id")
    private long userId;//用户ID
    @Id
    @Column(name = "dynainfo_id")
    private long dynainfoId;//动态ID
    @Column(name = "praise_time")
    private Date praiseTime;//操作点赞时间：yyyy-MM-dd hh:mm:ss
    @Column(name = "status")
    private int status;//是否已赞，0：取消赞，1：已赞
    public static final int STATUS_PRAISE = 1;
    public static final int STATUS_UNPRAISE = 0;
    @Column(name = "is_read")
    private int isRead;//是否已读，0：未读，1：已读
    public static final int READ_YES = 1;
    public static final int READ_NO = 0;
    @Column(name = "dynainfo_create_by")
    private long dynainfoCreateBy;//动态的创建者ID
    @Column(name = "dynainfo_create_at")
    private Date dynainfoCreateAt;//动态的创建时间

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getDynainfoId() {
        return dynainfoId;
    }

    public void setDynainfoId(long dynainfoId) {
        this.dynainfoId = dynainfoId;
    }

    public Date getPraiseTime() {
        return praiseTime;
    }

    public void setPraiseTime(Date praiseTime) {
        this.praiseTime = praiseTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getIsRead() {
        return isRead;
    }

    public void setIsRead(int isRead) {
        this.isRead = isRead;
    }

    public long getDynainfoCreateBy() {
        return dynainfoCreateBy;
    }

    public void setDynainfoCreateBy(long dynainfoCreateBy) {
        this.dynainfoCreateBy = dynainfoCreateBy;
    }

    public Date getDynainfoCreateAt() {
        return dynainfoCreateAt;
    }

    public void setDynainfoCreateAt(Date dynainfoCreateAt) {
        this.dynainfoCreateAt = dynainfoCreateAt;
    }
}
